﻿using System.Collections.Generic;
using CSW.Framework.Common;

namespace CSW.Framework.UI.Binding
{
    /// <summary>
    /// DeleteRecordsEventArgs. See <see cref="DeleteRecordsEventHandler{T}"/>.
    /// </summary>
    public class DeleteRecordsEventArgs<T> : DataEventArgs<ICollection<T>>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DeleteRecordsEventArgs&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="data">The data item to send to event handlers.</param>
        public DeleteRecordsEventArgs(ICollection<T> data)
            : base(data)
        {
        }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="DeleteRecordsEventArgs&lt;T&gt;"/> is handled.
        /// </summary>
        /// <value><c>true</c> if handled; otherwise, <c>false</c>.</value>
        public bool Handled { get; set; }
    }
}
